<template>
  <page-header-wrapper :title="false">
    <a-card title="批量导入失败汇总">
      <div class="table-operator">
        <s-table
          bordered
          ref="table"
          :row-key="(record) => record.log_id"
          :columns="lostColumns"
          :data="lostData"
        >
<!--          <template slot="filename" slot-scope="text,record">-->
<!--            <a-button size="small" type="link" @click="openPdf(record.)">{{text}}</a-button>-->
<!--          </template>-->
        </s-table>
      </div>
    </a-card>
  </page-header-wrapper>
</template>

<script>
import { STable } from '@/components'
import { getLost } from '@/api/patent.process'
import patentColumns from '@/columns/patent.process'
export default {
  components: {
    STable
  },
  name: 'ImportLostPt',
  data () {
    return {
      queryParam: {},
      lostColumns: patentColumns.lost,
      lostData: parameters => {
        return getLost(Object.assign(parameters, this.queryParam)).then(res => {
          return res.result
        })
      }
    }
  },
  created () {
    this.queryParam['filter[category]'] = '20'
  },
  methods: {}
}
</script>

<style scoped>

</style>
